<?php
/**
 * Handles the manipulation of the Eventsmanager database tables.
 *
 * YYYYY.
 * @package Eventsmanager
 * @author  Thato Selebogo
 */
class DatabaseTablesHandler {
    
    protected  $_databaseAdapter;
    protected  $_databaseTable;

    /**
    * Class constructor.
    *
    * @access public
    * @param  MySQLAdapter   $databaseAdapter     The name of the database adapter used by this class
    * @return void
    */

    public function __construct(MySQLAdapter $databaseAdapter)
    {
        $this->_databaseAdapter = $databaseAdapter;
    }

    public function registerBusinessUser($userData)
    {
        $this->_databaseTable = 'buser';
        $id = $this->_databaseAdapter->insert($this->_databaseTable,$userData);
 
    }
    
    /**
    * Check if username exists.
    * @param string $username
    */
    
   public function isUsernameAvailable($userName)
   {
       
   }



}
?>
